package com.ys.erp.stage_user_service.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * @author lwj
 * @date 2025/7/24
 */
@Data
public class StrongComplaintVO {

    @Schema(description = "投诉单号")
    private String complaintNo;

    @Schema(description = "投诉内容")
    private String complaintContent;

    @Schema(description = "投诉关联单号")
    private String relaNo;

    @Schema(description = "投诉图片")
    private List<String> complaintImage = new ArrayList<>();

    @Schema(description = "投诉类型，GOODS_ORDER:商城订单，PET_ORDER:宠物订单")
    private String complaintType;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "投诉状态，UN_DIS:待处理，DIS_START:开始处理，DIS_OK:已完成处理，DIS_SOLVE:已解决，DIS_UN_SOLVE:未解决")
    private String complaintStatus;

    @Schema(description = "投诉开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime initTime;

    @Schema(description = "投诉处理人名字")
    private String empName;

    @Schema(description = "处理日志集")
    private List<RecordVO> recordList;

    @Schema(description = "处理方案")
    private String disDes;

    @Data
    @Schema(description = "投诉日志记录")
    public static class RecordVO {

        @Schema(description = "日志时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime recordTime;

        @Schema(description = "日志类型")
        private String recordType;

        @Schema(description = "处理描述")
        private String disDescribe;

        @Schema(description = "处理图片")
        private List<String> disImage;

    }

}
